+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
+Sat Dec 19 01:56:13 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (gtk_clist_button_press): fixed GDK_2BUTTON_PRESS
+ bug.
+
Fri Dec 18 15:30:43 PST 1998 Manish Singh <yosh@gimp.org>
* configure.in: add ja to ALL_LINGUAS
/* selections on the list */
if (event->window == clist->clist_window)
{
+ if (clist->drag_button)
+ return FALSE;
+
x = event->x;
y = event->y;
}
else
{
- if (clist->drag_button == 0)
+ if (clist->click_cell.row >= 0 || clist->click_cell.column >= 0)
return FALSE;
clist->click_cell.row = -1;
}
}
}
-
return FALSE;
}
if (GTK_CLIST_ADD_MODE(clist))
gdk_gc_set_line_attributes (clist->xor_gc, 1, GDK_LINE_SOLID, 0, 0);
draw_xor_line (clist);
-
- return FALSE;
}
return FALSE;
}
return FALSE;
}
- if (clist->drag_button)
+ if (clist->drag_button == event->button)
{
gint row;
gint column;
g_return_val_if_fail (GTK_IS_CLIST (widget), FALSE);
clist = GTK_CLIST (widget);
- if (!(gdk_pointer_is_grabbed () && GTK_WIDGET_HAS_GRAB (clist)))
+ if (!(gdk_pointer_is_grabbed () && GTK_WIDGET_HAS_GRAB (clist)) ||
+ !clist->drag_button)
return FALSE;
button_actions = clist->button_actions[clist->drag_button - 1];
if (GTK_CLIST_REORDERABLE(clist) && button_actions & GTK_BUTTON_DRAGS)
{
/* delayed drag start */
- if (clist->click_cell.row >= 0 && clist->click_cell.column >= 0 &&
+ if (event->window == clist->clist_window &&
+ clist->click_cell.row >= 0 && clist->click_cell.column >= 0 &&
(y < 0 || y >= clist->clist_window_height ||
x < 0 || x >= clist->clist_window_width ||
y < ROW_TOP_YPIXEL (clist, clist->click_cell.row) ||